home *** CD-ROM | disk | FTP | other *** search
- rm by Omar Siddique
- for the Amiga computer
- July 8, 1994
-
- WHAT IS RM AND WHAT GOOD IS IT?
-
- Rm is a replacement for the AmigaDOS "delete" command. Rm has a standard
- query delete mode in which the program prompts the user for confirmation
- of deletion per file. Rm also has UNIX-like command line options that bypass
- this, and understands * wildcards.
-
- My purpose in writing rm was to create a delete command that would
- require confirmation of deletion so I wouldn't keep erasing files by accident.
- I also wanted something closer in appearance and usage to the UNIX rm
- command I use at work and school.
-
-
- HOW TO USE RM
-
- Rm is simple to use. Simply place it in the appropriate location on
- your path. To use rm in its standard mode:
-
- rm [file1] [file2] [file...]
-
-
- COMMAND LINE OPTIONS
-
- h -- Display a brief help message.
-
- f -- Delete protected files.
-
- n -- No query, don't ask for permission before deletion.
-
- r -- Delete files recursively. This will delete any directories
- specified, along with all of their contents, *including*
- sub-directories.
-
- Options must be the first argument on the command line, and must be
- preceded by a dash.
-
- Correct: rm -rf booga
- Incorrect: rm booga -rf
-
- The order of the options doesn't matter; rm treats -rn the same as -nr.
-
- So, to delete all files in sys: except protected ones, without
- confirmation, you would type:
-
- rm -rn sys:*
-
- To delete files called "junk" and "morejunk", with confirmation of deletion:
-
- rm junk morejunk
-
-
- FURTHER USAGE NOTES
-
- Be careful in using rm -rfn -- it *will* delete whatever files/directories
- you ask it to delete, as well as any contained subdirectories and their
- contents, without prompts.
-
- Rm understands both standard and Amiga wildcards (?, *, #?).
-
- Rm is pure, and the AmigaDOS "resident" command can be used on it.
-
- C: is a good place to keep rm, or use rm to replace your delete command.
- Alternately, alias "delete" to "rm". If a certain set of command line
- options is must useful to you, alias it to rm. (e.g., alias rm rm -n)
-
-
- COMPATIBILITY, BUGS, AND LIMITATIONS
-
- Rm was compiled with SAS/C 6.51 and tested on an Amiga 3000/25 with
- 5 megs of RAM, KickStart 2.04, and Workbench 2.1. It should run properly on
- any Amiga. If there are any compatibility problems, let me know.
-
- There are no known bugs.
-
- Rm's only limitation is its size (quite a bit more than the AmigaDOS
- delete command). This will be somewhat alleviated when SAS/C 6.52 comes
- out, since extra code was necessary to work around a bug in SAS's getfnl().
-
-
- CONTACTING THE AUTHOR
-
- Feel free to send any comments, question, complaints, flames, bug-reports,
- requests, suggestions, and whatever else to me at:
-
- Internet: osiddi1@umbc.edu (try here first)
- o.siddique2@genie.geis.com
- GEnie: O.Siddique2
-
- Or if you prefer to use slower means (or wish to send presents, money,
- pictures of youself, a new 2 gig drive, etc):
-
- Snail Mail: Omar Siddique
- P.O. Box 451
- Perry Hall, MD 21128
-
-
- DISTRIBUTION AND DISCLAIMER
-
- Rm is freely distributable. However, it must be distributed in
- its intact, original archive, which includes this document and the
- executable.
-
- While rm has proven stable and problem free, the standard disclaimer
- applies; this program should work just fine, be harmless entertainment, and so
- forth, but if it causes your computer to achieve sentience and take over the
- world, randomly deletes paragraphs from the novel you've been working on
- for five years, or causes any other unexpected evilness, the author is
- not responsible or liable for any damage or claims that result. :-)
-
-
- OTHER FINE AMIGA WORKS BY THE AUTHOR
-
- QuoteGiver -- Displays quotes and sayings randomly from a list
-
- Free -- Displays free space available on a drive
-
- Purity -- Purity test taker
-
-
- ABOUT THE AUTHOR
-
- I'm an undergraduate Computer Science major/History minor at University
- of Maryland, Baltimore County campus. I seem to spend all of my time around
- computers, but I occasionally find time to eat, sleep, dig holes in the
- ground, etc. To contact me, see above.
-
-
- VERSION NOTES
-
- 1.00 Initial Release
-
-